package com.zcc.springbootneo4j.dao;

import com.zcc.springbootneo4j.entity.Disease;
import org.springframework.data.neo4j.annotation.Query;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
*@author 范晓炜
*@date 2022/10/14
*/

/**
 * 疾病
 */
@Component
public interface MatchAll extends Neo4jRepository<Disease,Long> {

    /**
     * 查询所有
     * @return
     */
    @Query("MATCH (n) RETURN n ")
    List<Disease> findAllBy2();

}

